home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 - Homepage / CHIP.BIN / share / htmledit / bashhtml / bashhtml.exe / %AppDir% / scripts / No Right-Click.txt < prev    next >
Encoding:
Text File  |  2003-09-01  |  1.2 KB  |  27 lines

  1. [DESCRIPTION]Gives you full control over a new window's attributes.[/DESCRIPTION]
  2.  
  3. [HEAD CODE][/HEAD CODE]
  4.  
  5. [BODY CODE]window.open('url to open','window name','attribute1,attribute2,attribute3')
  6.  
  7. width=integer
  8. height=integer
  9. resizable=yes or no
  10. scrollbars=yes or no
  11. toolbar=yes or no (back,forward,stop etc.)
  12. location=yes or no (where you type the url)
  13. directories=yes or no (other special buttons)
  14. status=yes or no (statusbar)
  15. menubar=yes or no (File, Edit, etc.)
  16. copyhistory=yes or no (copies current window's history)
  17. screenX=number in pixels
  18. screenY=number in pixels
  19. left=number in pixels
  20. top=number in pixels[/BODY CODE]
  21.  
  22.  
  23. [NOTES]To make use of this you use the OnClick command, as in the below example which will open a new window without any toolbars or anything:
  24.  
  25. <a href="#" onClick="window.open('mypage.html','MyPage', 'height=150,width=300,left=500,top=250,screenX=500,screenY=250,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no')">Bash Software</a>
  26.  
  27. Note that you use both the left,top and screenX,screenY attributes. That is because Internet Explorer and Netscape use different attributes to accomplish the same thing.[/NOTES]